Skip to content

Conversation

@erichlf
Copy link
Owner

@erichlf erichlf commented Jun 6, 2024

Using docker ps it is possible to obtain the pid of a docker container. devcontainer-cli uses the devcontainer.json path as a label for a devcontainer. With these two bits of information we are able to kill a currently running devcontainer.

Fixes: #5

@erichlf erichlf merged commit bf9f437 into main Jun 6, 2024
@erichlf erichlf deleted the down branch June 6, 2024 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add the ability to shutdown the devcontainer

2 participants